package com.ocean.resources.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ocean.common.annotation.Excel;
import com.ocean.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资源目录信息对象 o_resources
 *
 * @author ocean
 * @date 2022-12-22
 */
public class OResources extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createName;

    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    private String updateName;

    /**
     * 更新日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /**
     * 父资源
     */
    @Excel(name = "父资源")
    private Long parentId;
    private String parentName;
    private String parentResourcesDirPath;

    /**
     * 资源名称
     */
    @Excel(name = "资源名称")
    private String resourcesName;

    /**
     * 资源描述
     */
    @Excel(name = "资源描述")
    private String resourcesRemark;

    /**
     * 资源路径
     */
    @Excel(name = "资源路径")
    private String resourcesDirPath;

    /**
     * 组织机构id
     */
    @Excel(name = "组织机构id")
    private String departId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getParentId() {
        return parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getParentResourcesDirPath() {
        return parentResourcesDirPath;
    }

    public void setParentResourcesDirPath(String parentResourcesDirPath) {
        this.parentResourcesDirPath = parentResourcesDirPath;
    }

    public void setResourcesName(String resourcesName) {
        this.resourcesName = resourcesName;
    }

    public String getResourcesName() {
        return resourcesName;
    }

    public void setResourcesRemark(String resourcesRemark) {
        this.resourcesRemark = resourcesRemark;
    }

    public String getResourcesRemark() {
        return resourcesRemark;
    }

    public void setResourcesDirPath(String resourcesDirPath) {
        this.resourcesDirPath = resourcesDirPath;
    }

    public String getResourcesDirPath() {
        return resourcesDirPath;
    }

    public void setDepartId(String departId) {
        this.departId = departId;
    }

    public String getDepartId() {
        return departId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createName", getCreateName())
                .append("createBy", getCreateBy())
                .append("createDate", getCreateDate())
                .append("updateName", getUpdateName())
                .append("updateBy", getUpdateBy())
                .append("updateDate", getUpdateDate())
                .append("parentId", getParentId())
                .append("resourcesName", getResourcesName())
                .append("resourcesRemark", getResourcesRemark())
                .append("resourcesDirPath", getResourcesDirPath())
                .append("departId", getDepartId())
                .toString();
    }
}
